import Vue from 'vue'
import App from './App'


// 引入vuex
import Vuex from 'vuex';
Vue.use(Vuex);

// 引入uView
import uView from "uview-ui"
Vue.use(uView)

// 挂载vuex实列
import store from './store/index';
Vue.prototype.$store = store;

// 引用分享
let mpShare = require('utils/share.js');
Vue.mixin(mpShare)



Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
}).$mount()


// 引用请求网络
import httpInterceptor from 'network/http.js'
Vue.use(httpInterceptor,app)

// 引用集中api管理
import httpApi from 'network/api.js'
Vue.use(httpApi, app)

export default app


